<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/6/14
 * Time: 11:02
 */

namespace app\common\util\weixin;


use app\common\util\CUrl;

class AutoReply
{
    /**
     * 获取自动回复规则
     *
     * @return String 返回结果与字段说明请查看http://mp.weixin.qq.com/wiki/7/7b5789bb1262fb866d01b4b40b0efecb.html
     */
    public static function getRule()
    {
        return json_decode(CUrl::httpGet('https://api.weixin.qq.com/cgi-bin/get_current_autoreply_info?access_token=' . AccessToken::getAccessToken()), true);
    }

}